// import axios from "axios";
// import api from "@/api";
// import { toLogout, systemPrivilegeInfo } from "../../api/api";
const taskData = {
  state: {
    topTaskYujingData: {}, // 预警-icon灯
    topTaskAllData: {}
  },
  mutations: {
    SET_topTaskYujingData: (state, topTaskYujingData) => {
      state.topTaskYujingData = topTaskYujingData || [];
    },
    SET_topTaskAllData: (state, topTaskAllData) => {
      state.topTaskAllData = topTaskAllData;
    },
    GET_topTaskAllData: (state) => state.topTaskAllData
  },
  actions: {
    async SET_topTaskYujingData({ commit }, data) {
      console.log("SET_topTaskYujingData", data);
      commit("SET_topTaskYujingData", data);
    },
    async GET_topTaskAllData({ commit }) {
      return commit("SET_topTaskAllData");
    },
    async SET_topTaskAllData({ commit }, data) {
      console.log("SET_topTaskAllData", data);
      commit("SET_topTaskAllData", data);
    }
  }
};
export default taskData;
